﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Quickly.Identity.Domain
{
    public record PagedList<T>
    {
        public PagedList(Paging paging) : this(paging, 0, []) { }
        public PagedList(Paging paging, int totalCount) : this(paging, totalCount, []) { }

        public PagedList(Paging paging, int totalCount, List<T> datas)
        {
            Pageing = paging;
            TotalCount = totalCount;
            Datas = datas;
        }

        public Paging Pageing { get; init; }
        public int TotalCount { get; init; }
        public List<T> Datas { get; init; }
    }
}
